package com.example.actordemo3.cluster;

import akka.actor.ActorSystem;
import akka.actor.Props;
import com.typesafe.config.ConfigFactory;

public class TestCluter {

    public static void main(String[] args) {
        ActorSystem system1 = ActorSystem.create("sys",
                ConfigFactory.load("cluster1.conf"));
        system1.actorOf(Props.create(ClusterActor.class),"clusterActor");


        ActorSystem system2 = ActorSystem.create("sys",
                ConfigFactory.load("cluster2.conf"));
        system2.actorOf(Props.create(ClusterActor.class),"clusterActor");

        ActorSystem system3 = ActorSystem.create("sys",
                ConfigFactory.load("cluster3.conf"));
        system3.actorOf(Props.create(ClusterActor.class),"clusterActor");

    }
}
